import request from '@/utils/request'

// 查询股道/台位列表
export function listTrack(query) {
  return request({
    url: '/track/track/list',
    method: 'get',
    params: query
  })
}

// 查询股道/台位详细
export function getTrack(id) {
  return request({
    url: '/track/track/' + id,
    method: 'get'
  })
}

// 新增股道/台位
export function addTrack(data) {
  return request({
    url: '/track/track',
    method: 'post',
    data: data
  })
}

// 修改股道/台位
export function updateTrack(data) {
  return request({
    url: '/track/track',
    method: 'put',
    data: data
  })
}

// 删除股道/台位
export function delTrack(id) {
  return request({
    url: '/track/track/' + id,
    method: 'delete'
  })
}


//查询摄影机列表
export function getcameraList(query) {
  return request({
    url: `/track/track/cameraList`,
    method: 'get',
    params:query
  })
}

